﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EnCor.Security
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
    public class ServiceAuthorizationAttribute : Attribute
    {
        private string _Right;
        private string _ClaimType;

        public ServiceAuthorizationAttribute(string right, string claimType)
        {
            _Right = right;
            _ClaimType = claimType;
        }

        public string Right
        {
            get
            {
                return _Right;
            }
        }

        public string ClaimType
        {
            get
            {
                return _ClaimType;
            }

        }

    }
}
